<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>后台 - 桌面</title>
    {%include 'admin/csbase.html'%}
</head>

<body class="gray-bg">
    <div class="wrapper wrapper-content">
        <div class="row">
            
            <div class="col-sm-3">
                <div class="widget style1 red-bg">
                    <div class="row">
                        <div class="col-xs-4">
                            <i class="fa fa-users fa-5x"></i>
                        </div>
                        <div class="col-xs-8 text-right">
                            <span>今日注册会员</span>
                            <p style="margin:2px 0 4px 0;font-size:16px">{$i['user']}</p>
                            <span>注册会员总数</span>
                            <p style="margin:2px 0 4px 0;font-size:16px">{$i['users']}</p>
                        </div>
                    </div>
                </div>
            </div>
            
            <div class="col-sm-3">
                <div class="widget style1 lazur-bg">
                    <div class="row">
                        <div class="col-xs-4">
                            <i class="fa fa-user-plus fa-5x"></i>
                        </div>
                        <div class="col-xs-8 text-right">
                            <span>今日销售</span>
                            <p style="margin:2px 0 4px 0;font-size:16px">{$i['touzi']}</p>
                            <span>累计销售</span>
                            <p style="margin:2px 0 4px 0;font-size:16px">{$i['touzi_all']}</p>
                        </div>
                    </div>
                </div>
            </div>
            
            <div class="col-sm-3">
                <div class="widget style1 yellow-bg">
                    <div class="row">
                        <div class="col-xs-4">
                            <i class="fa fa-money fa-5x"></i>
                        </div>
                        <div class="col-xs-8 text-right">
                            <span>今日静态产量</span>
                            <p style="margin:2px 0 4px 0;font-size:16px">{$i['jt']}</p>
                            <span>累计静态产量</span>
                            <p style="margin:2px 0 4px 0;font-size:16px">{$i['jt_all']}</p>
                        </div>
                    </div>
                </div>
            </div>
            
            <div class="col-sm-3">
                <div class="widget style1 navy-bg">
                    <div class="row">
                        <div class="col-xs-4">
                            <i class="fa fa-credit-card fa-5x"></i>
                        </div>
                        <div class="col-xs-8 text-right">
                            <span>今日动态产量</span>
                            <p style="margin:2px 0 4px 0;font-size:16px">{$i['dt']}</p>
                            <span>累计动态产量</span>
                            <p style="margin:2px 0 4px 0;font-size:16px">{$i['dt_all']}</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <div class="row">
            <div class="col-sm-4">
                <div class="ibox">
                    <div class="ibox-title">
                        <h5>账户安全提醒</h5>
                    </div>
                    <div class="ibox-content">
                        <strong>警告： 为了您的账户安全，请遵守以下几点要求</strong>
                        <div>1、尽量不要和他人共用账号密码；</div>
                        <div>2、不要在网吧，和咖啡厅等公共网络登录本系统；</div>
                        <div>3、密码不要用身份证、生日等；</div>
                        <div>4、需要离开时记得按退出按钮；</div>
                        <div>5、如发现账号异常请及时联系管理员或修改密码。</div>
                    </div>
                </div>
            </div>
            <div class="col-sm-4">
                <div class="ibox">
                    <div class="ibox-title">
                        <h5>最新公告</h5>
                    </div>
                    <div class="ibox-content" style="line-height:26px;">
                        <volist name="news" id="no">
                        <a><font>{$no.title}</font><span class="pull-right">{$no['addtime']|date="Y-m-d",###}</span><div class="clear"></div></a>
                        </volist>

                    </div>
                </div>
            </div>
            <div class="col-sm-4">
                <div class="ibox">
                    <div class="ibox-title">
                        <h5>会员统计</h5>
                    </div>
                    <div class="ibox-content">
                        <table class="table table-bordered">
                            <tbody>
                                <volist name="ul" id="uo">
                                <tr>
                                    <th style="width:40%;background:#f5f5f6">{$uo['name']}</th>
                                    <td>{$uo['num']}</td>
                                </tr>
                                </volist>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script type="text/javascript" src="/static/res/js/jquery.min.js"></script>
    <script type="text/javascript" src="/static/res/js/layer/layer.js"></script>
    <script type="text/javascript">
    /*layer.open({
      type: 1,
      skin: 'layui-layer-rim', //加上边框
      area: ['420px', '240px'], //宽高
      content: '<p style="padding: 20px;">静态动态测试地址：http://www.cksta.com/index.php/Api/Index/wakuang.html</p>'
    });*/
    </script>
</body>
</html>